package com.easygem.business.service;

import com.easygem.business.mapper.ClientConcernMapper;
import com.easygem.business.service.base.IBaseService;
import com.easygem.common.model.business.BgClient;
import com.easygem.common.model.business.BgClientType;
import com.easygem.common.vo.business.BgClientVO;
import com.easygem.common.vo.system.PageVO;

import java.util.List;

/**
 * @author 廖思炜
 * @version 1.0
 * @className ClientConcernService
 * @Description TODO 服务层接口
 * @date 2025/1/13 15:00
 */
public interface ClientConcernService extends IBaseService<ClientConcernMapper,BgClient,Integer> {
    /**
     * 根据条件分页得到客户关怀界面的信息
     * @return
     */
    PageVO<BgClient> getClientConcerns(BgClientVO bgClientConcernVO, Integer pageNum, Integer pageSize);

    /**
     * 查询所有客户类型并返回
     * @return
     */
    List<BgClientType> getAllClientTypes();

    /**
     * 修改关注状态
     * @param bgClientConcernVO
     * @throws Exception
     */
    public void updateAttention(BgClientVO bgClientConcernVO) throws Exception;

    /**
     * 客户续签
     * @param bgClientConcernVO
     */
    public void renew(BgClientVO bgClientConcernVO) throws Exception;

    /**
     * 根据账户名得到应用key
     * @param accountName
     * @return
     */
    String getAppIdByName(String accountName);
    /**
     * 根据账户名得到应用秘钥
     * @param accountName
     * @return
     */
    String getAppSecretByName(String accountName);
}
